
clear 
set more off
cd "$Mydirectory1/1_DataSources/NLSYM66/"

import delimited ./rawdata/hhsize.csv, case(preserve) clear

label define vlR0369800 0 "0"  1 "1"  2 "2"  3 "3"  4 "4"  5 "5"  6 "6"  7 "7"  8 "8"  9 "9"  10 "10"  11 "11"  12 "12"  13 "13"  14 "14"  15 "15"  16 "16 TO 99: 16+" 
label values R0369800 vlR0369800

label define vlR0563900 0 "0"  1 "1"  2 "2"  3 "3"  4 "4"  5 "5"  6 "6"  7 "7"  8 "8"  9 "9"  10 "10"  11 "11"  12 "12"  13 "13"  14 "14"  15 "15"  16 "16 TO 99: 16+" 
label values R0563900 vlR0563900

label define vlR0611700 0 "0"  1 "1"  2 "2"  3 "3"  4 "4"  5 "5"  6 "6"  7 "7"  8 "8"  9 "9"  10 "10"  11 "11"  12 "12"  13 "13"  14 "14"  15 "15"  16 "16 TO 99: 16+" 
label values R0611700 vlR0611700

label define vlR0744000 0 "0"  1 "1"  2 "2"  3 "3"  4 "4"  5 "5"  6 "6"  7 "7"  8 "8"  9 "9"  10 "10"  11 "11"  12 "12"  13 "13"  14 "14"  15 "15"  16 "16 TO 99: 16+" 
label values R0744000 vlR0744000

  rename R0000100 R0000100_1966 
  rename R0369800 R0369800_1971 
  rename R0563900 R0563900_1978 
  rename R0611700 R0611700_1980 
  rename R0744000 R0744000_1981 

  sort R0000100_1966
  save ./rawdata/hhsize.dta, replace
